var oneChanneli = document.getElementById("oneChannelValue").value;
var twoChanneli = document.getElementById("twoChannelValue").value;
var thrChanneli = document.getElementById("thrChannelValue").value;
var oneMediumi = document.getElementById("oneMediumValue").value;
var twoMediumi = document.getElementById("twoMediumValue").value;
var thrMediumi = document.getElementById("thrMediumValue").value;
$(".showDetail").click(function () {
    $(this).parent().siblings().toggle();
    $(this).children().toggle();
});
$(".showBox").click(function () {
    $(this).hide();
    $("#isRevisitInfoForm .hideBox").show();
    $("#isRevisitInfoForm").css('box-shadow', '0 0 5px #666666');
});
$(".cancel").click(function () {
    $('.showBox').show();
    $("#isRevisitInfoForm .hideBox").hide();
    $("#isRevisitInfoForm").css('box-shadow', '0 0 0 white');
});
var phoneSharShipValue = $('#phoneSharShipValue').val();
if (phoneSharShipValue != "") {
    $("#phoneSharShip option[value='" + phoneSharShipValue + "']").attr("selected", "selected");
}
$(function () {
    var consultantInfoList = "${consultantInfoList}";
    if (consultantInfoList == "[]") {
        consultantInfoList = JSON.parse(consultantInfoList);
        if (consultantInfoList.length <= 0) {
            var img = '<div><img src="https://pynnn.oss-cn-hangzhou.aliyuncs.com/consult.png" alt=""></div>';
            $("#consultantInfoTitle").html(img)
        }
    }
    var payServiceInfoList = "${payServiceInfoList}";
    if (payServiceInfoList == "[]") {
        payServiceInfoList = JSON.parse(payServiceInfoList);
        if (payServiceInfoList.length <= 0) {
            var imgs = '<div style="position: absolute;top: 60%;left: 50%;transform: translate(-50%,-50%);"><img src="https://pynnn.oss-cn-hangzhou.aliyuncs.com/babeDeal.png" alt=""></div>';
            $("#payServiceInfoTitle").html(imgs)
        }
    }
});
$("#statuss").change(function () {
    var data = new Date();
    var y = data.getFullYear();
    var m = data.getMonth() + 1;
    var d = data.getDate();
    if (m < 10) {
        m = "0" + m
    }
    if (d < 10) {
        d = "0" + d
    }
    var time = y + "-" + m + "-" + d;
    if ($("#statuss option:selected").text() == "过期") {
        $("#appointmentTime").val(time)
    }
});